<?php
use think\facade\Route;

Route::group('admin',function(){
    Route::get('','@admin/login/login')->name('admin/login/login');
    Route::post('login/index','@admin/login/index')->name('admin/login/index');
    Route::group(['middleware'=>['AdminLogin']],function(){
        Route::get('index/index','@admin/index/index')->name('admin/index/index');
        Route::get('index/post','@admin/index/post')->name('admin/index/post');
        Route::post('index/postpassword','@admin/index/postpassword')->name('admin/index/postpassword');
        Route::get('index/tuichu','@admin/index/tuichu')->name('admin/index/tuichu');
        Route::get('cate/index','@admin/cate/index')->name('admin/cate/index');
        Route::get('cate/cateadd','@admin/cate/cateadd')->name('admin/cate/cateaddget');
        Route::post('cate/cateadd','@admin/cate/cateadd')->name('admin/cate/cateaddpost');
        Route::get('cate/cateupd','@admin/cate/cateupd')->name('admin/cate/cateupdget');
        Route::post('cate/cateupd','@admin/cate/cateupd')->name('admin/cate/cateupdpost');
        Route::get('cate/catedel','@admin/cate/catedel')->name('admin/cate/catedel');
        Route::get('blog/index','@admin/blog/index')->name('admin/blog/index');
        Route::get('blog/blogsearch','@admin/blog/blogsearch')->name('admin/blog/blogsearchget');
        Route::post('blog/blogsearch','@admin/blog/blogsearch')->name('admin/blog/blogsearchpost');
        Route::get('blog/blogadd','@admin/blog/blogadd')->name('admin/blog/blogaddget');
        Route::post('blog/blogadd','@admin/blog/blogadd')->name('admin/blog/blogaddpost');
        Route::get('blog/update','@admin/blog/update')->name('admin/blog/updateget');
        Route::post('blog/update','@admin/blog/update')->name('admin/blog/updatepost');
        Route::get('blog/blogupd','@admin/blog/blogupd')->name('admin/blog/blogupdget');
        Route::post('blog/blogupd','@admin/blog/blogupd')->name('admin/blog/blogupdpost');
        Route::get('blog/blogdel','@admin/blog/blogdel')->name('admin/blog/blogdel');
        Route::get('index/personal','@admin/index/personal')->name('admin/index/personalget');
        Route::post('index/personal','@admin/index/personal')->name('admin/index/personalpost');
        Route::get('index/update','@admin/index/update')->name('admin/index/updateget');
        Route::post('index/update','@admin/index/update')->name('admin/index/updatepost');
        Route::get('cate/update','@admin/cate/update')->name('admin/cate/updateget');
        Route::post('cate/update','@admin/cate/update')->name('admin/cate/updatepost');

    });
});